package com.uzai.console.entity.es;

import com.uzai.common.utils.EsIndexName;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * @Auther: jianghan
 * @Date: 2021/11/19 11:33
 * @Description:
 */
@Document(indexName = EsIndexName.UZAI_TIKTOK_CONVERSATION, shards = 5, replicas = 2)
public class EsTiktokConversation {
    @Id
    @Field(type = FieldType.Keyword)
    private String id;
    @Field(type = FieldType.Long)
    private Long merId;
    @Field(type = FieldType.Keyword)
    private String deviceId;
    @Field(type = FieldType.Long)
    private Long deviceUniqueId;
    @Field(type = FieldType.Integer)
    private Integer deviceType;

    /**
     * 会话ID
     */
    @Field(type = FieldType.Keyword)
    private String conversationId;

    /**
     * 会话名称
     */
    @Field(type = FieldType.Text)
    private String name;

    /**
     * 类型 1单聊 2群聊
     */
    @Field(type = FieldType.Integer)
    private int type;

    /**
     * 聊天对象uid，群聊为空，群聊信息另传
     */
    @Field(type = FieldType.Keyword)
    private String talker;

    /**
     * 头像
     */
    @Field(type = FieldType.Keyword)
    private String avatar;

    /**
     * 聊天对象SecUid
     */
    @Field(type = FieldType.Keyword)
    private String secUid;

    /**
     * 群配置方案id
     */
    @Field(type = FieldType.Long)
    private Long managePlanId;

    @Field(type = FieldType.Long)
    private Long version = 0L;
    @Field(type = FieldType.Integer)
    private int createTime;
    @Field(type = FieldType.Integer)
    private int updateTime;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Long getMerId() {
        return merId;
    }

    public void setMerId(Long merId) {
        this.merId = merId;
    }

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }

    public Long getDeviceUniqueId() {
        return deviceUniqueId;
    }

    public void setDeviceUniqueId(Long deviceUniqueId) {
        this.deviceUniqueId = deviceUniqueId;
    }

    public Integer getDeviceType() {
        return deviceType;
    }

    public void setDeviceType(Integer deviceType) {
        this.deviceType = deviceType;
    }

    public String getConversationId() {
        return conversationId;
    }

    public void setConversationId(String conversationId) {
        this.conversationId = conversationId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getTalker() {
        return talker;
    }

    public void setTalker(String talker) {
        this.talker = talker;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getSecUid() {
        return secUid;
    }

    public void setSecUid(String secUid) {
        this.secUid = secUid;
    }

    public Long getVersion() {
        return version;
    }

    public void setVersion(Long version) {
        this.version = version;
    }

    public int getCreateTime() {
        return createTime;
    }

    public void setCreateTime(int createTime) {
        this.createTime = createTime;
    }

    public int getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(int updateTime) {
        this.updateTime = updateTime;
    }

    public Long getManagePlanId() {
        return managePlanId;
    }

    public void setManagePlanId(Long managePlanId) {
        this.managePlanId = managePlanId;
    }
}
